package com.kgc.store.remote;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.store.pojo.ProCombine;
import com.kgc.store.pojo.ProDivide;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface ProDivideRemote {
    @RequestMapping("getOneProDivide")
    @ResponseBody
    public ResponseMsg getOne(@RequestParam("code") String code);
    @RequestMapping("getProDividePage")
    @ResponseBody
    public ResponseMsg getPage(@RequestBody Map<String, Object> map);
    @RequestMapping("addProDivide")
    @ResponseBody
    public ResponseMsg add(@RequestBody ProDivide proDivide);
    @RequestMapping("updateProDivide")
    @ResponseBody
    public ResponseMsg update(@RequestBody ProDivide proDivide);
    @RequestMapping("delProDivide")
    @ResponseBody
    public ResponseMsg del(@RequestParam("code") String code);
    @RequestMapping("changProDivideStatus")
    @ResponseBody
    public ResponseMsg changStatus(@RequestParam("code") String code,@RequestParam("status") String status);
    @RequestMapping("/changeProDivideStore")
    @ResponseBody
    public ResponseMsg changeStore(@RequestBody ProDivide proDivide);
}
